{layout name="layout/layout" /}
<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">

        <input type="text" name="activity_id" style="display: none" value="{$activity_id}">
        <input type="text" name="user_id" style="display: none" value="{$user_id}">

        <div class="layui-form-item">
            <label class="layui-form-label required">上级用户</label>
            <div class="layui-input-block">
                <select name="recom_user_id" lay-verify="required" lay-search>
                    <option value="0">请选择上级用户</option>
                    {foreach $user as $value}
                    <option value="{$value['user_id']}" {if $value["user_id"] == $recom_user_id}selected{/if}>{$value['nickname']}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">溯源员工</label>
            <div class="layui-input-block">
                <select name="clerk_user_id" lay-verify="required" lay-search>
                    <option value="0">请选择溯源员工</option>
                    {foreach $clerk_user as $value}
                    <option value="{$value['user_id']}" {if $value["user_id"] == $clerk_user_id}selected{/if}>{$value['nickname']}</option>
                    {/foreach}
                </select>
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>
